import {seckList} from '../../../request/api'

const state = {
    secklist:[]
}

const getters = {
    getSeckList(state){
        return state.secklist
    }
}

const mutations = {
    GETSECK(state,payload){
        state.secklist = payload
    }
}

const actions = {
    getSeckListActions({commit}){
        seckList().then(res => {
            // console.log(res);
            if(res.code == 200){
                commit('GETSECK',res.list)
            }
        })
    }
}

export default {
    state,
    getters,
    mutations,
    actions,
    namespaced:true
}